<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
        <title>Home</title>
        <script type="text/javascript" src="../js/big5.js">
        </script>
        <script type="text/javascript">
            
            // INITIALIZATION
            
            function big5available(){
                // This will only be called if the page is viewed by Big Five
                
                // Set some informations we got from Big Five
                $('dev-model').innerHTML = Device.model
                $('dev-id').innerHTML = Device.id
                
            }
            
            window.onload = function(){
                // Init Big Five and skip to custom "big5available" funcion
                Device.start(big5available);
            }
        </script>
    </head>
    <body>
        <h1>Big Five Demo</h1>
        <p>
            You are running on <strong id="dev-model">???</strong>
            and this is its unique identification number <strong id="dev-id">???</strong> 
        </p>
        <p>
            Choose a demo:
        </p>
        <ol>
            <li>
                <a href="accel.html">Acceleration</a>
            </li>
            <li>
                <a href="location.html">Geo Location</a>
            </li>
            <li>
                <a href="image.html">Camera and Images</a>
            </li>
            <li>
                <a href="database.html">Database</a>
            </li>
			<li>
                <a href="#" onclick="Device.vibrate(); return false;">Vibration alarm (only on iPhone)</a>
            </li>
        </ol>
        <hr/>
        <p>
            Go to <a href="http://www.big5apps.com">Big Five Homepage</a>
        </p>
    </body>
</html>
